<?php

namespace App\Http\Controllers\Home;
use Illuminate\Http\Request;
use DB;
use App\Http\Requests;
use App\Http\Controllers\Controller;
use Gregwar\Captcha\CaptchaBuilder;
use App\Http\Requests\UserInsertRequest;
use App\Http\Controllers\Admin\CateController;

class IndexController extends Controller
{
   // 首页
	public function Index()
	{
		$cates = CateController::getCatesByPid(0);
		// dd($cates);
		// 解析首页模板
		return view('Home.Layout.layout',['cates'=>$cates]);
	}

}
